import request from '@/utils/request'

// 查询智慧地图列表
export function listWisdom(query) {
  return request({
    url: '/wisdom/wisdom/list',
    method: 'get',
    params: query
  })
}

// 查询智慧地图详细
export function getWisdom(id) {
  return request({
    url: '/wisdom/wisdom/' + id,
    method: 'get'
  })
}

// 新增智慧地图
export function addWisdom(data) {
  return request({
    url: '/wisdom/wisdom',
    method: 'post',
    data: data
  })
}

// 修改智慧地图
export function updateWisdom(data) {
  return request({
    url: '/wisdom/wisdom',
    method: 'put',
    data: data
  })
}

// 删除智慧地图
export function delWisdom(id) {
  return request({
    url: '/wisdom/wisdom/' + id,
    method: 'delete'
  })
}

// 导出智慧地图
export function exportWisdom(query) {
  return request({
    url: '/wisdom/wisdom/export',
    method: 'get',
    params: query
  })
}